


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Christopher
 */
public class Wrapper2 implements WordSet{
    CircularList<Word> listin;
    public Wrapper2(){
        listin = new CircularList<Word>();
    }
    
    public Word get(Word word){
        int index = listin.indexOf(word);
	if(index == -1) return null;
	return listin.get(index);
    }
    
    public void add(Word wordObject){
        listin.add(wordObject);
    }
}

